<?php

namespace common\models\tsline;

use Yii;

/**
 * This is the model class for table "ln_ts_bloger_channel".
 *
 * @property integer $id
 * @property integer $bloger_id
 * @property integer $channel_id
 * @property integer $created_at
 * @property integer $updated_at
 */
class TslineBlogerChannel extends \yii\db\ActiveRecord {

    use \common\traits\TimestampBehavior;

    /**
     * @inheritdoc
     */
    public static function tableName() {
        return '{{%ts_bloger_channel}}';
    }

    /**
     * @inheritdoc
     */
    public function rules() {
        return [
            [['bloger_id', 'channel_id'], 'required'],
            [['bloger_id', 'channel_id', 'created_at', 'updated_at'], 'integer']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'bloger_id' => '泰山号id',
            'channel_id' => '频道id',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }

}
